import { useLocation, useNavigate, useSearchParams } from "react-router-dom";

const Login = () => {
  const params = useSearchParams()[0];

  return <div>
    <h2>Login</h2>
    <div>
      <div>
        <span style={{fontWeight: 'bolder'}}>query.type: </span>
        <span>{params.get('type') || '-'}</span>
      </div>
      <div>
        <span style={{fontWeight: 'bolder'}}>query.backUrl: </span>
        <span>{params.get('backUrl') || '-'}</span>
      </div>
    </div>
  </div>
}

export default Login